<template>
  <b-button :disabled="disabledFlag" variant="danger" @click="showMsgBox">删除</b-button>
</template>
<script>
export default {
  props: {
    itemID: String | Number,
    disabledFlag: Boolean,
  },
  methods: {
    showMsgBox() {
      this.$bvModal
        .msgBoxConfirm("确认删除吗？", {
          hideBackdrop: true,
        })
        .then((value) => {
          this.$emit("deleteRange", value, this.itemID);
        });
    },
  },
};
</script>
